import React from 'react'
import ReactDom from 'react-dom'
import './index.css'

const div = (
  <div>
    {/* 行内样式, 不推荐 */}
    <p style={{ color: 'red', backgroundColor: 'skyblue' }}>你好</p>
    <p className='box'>hello 和 word</p>
  </div>
)

ReactDom.render(
  div,
  document.getElementById('root')
)